﻿/*
 * 
 * 
 * 
 亚瑟王
 * 
 * 
 * 
 */
using Git.Storage.WebApi.Common;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Web;

namespace Git.Storage.WebApi.Servers
{
    /// <summary>
    /// 移库
    /// </summary>
    public class MoveStorage
    {
        /// <summary>
        /// agv反馈调用的存储过程增加库存
        /// </summary>
        public string Proc_MoveStorage(string orderNum)
        {
            ProcHelpers prochelp = new ProcHelpers();

            SqlParameter[] parameters = new SqlParameter[]
            {
                new SqlParameter("@OrderNum", orderNum),
                new SqlParameter("@Status", 2),
                new SqlParameter("@AuditUser", "默认"),
                new SqlParameter("@Reason", ""),
                new SqlParameter("@OperateType", 1),
                new SqlParameter("@EquipmentNum", ""),
                new SqlParameter("@EquipmentCode", ""),
                new SqlParameter("@Remark", "")
            };
            string ReturnValue;
            prochelp.ExecuteStoredProcedureWithOutput("Proc_AuditeMove", parameters, out ReturnValue);
            return ReturnValue;
        }
    }
}